package com.mjkj.core.exception;

/**
 * @author XuDoom
 * @date 2023/1/11 20:59
 */
public interface ErrorCodeConstants {

    /**
     * 文件删除失败
     */
    ErrorCode FILE_REMOVE_FAIL = new ErrorCode(201, "文件删除失败");
    ErrorCode DOCX_TRANSFORM_FAIL = new ErrorCode(201, "docx文件转换失败");
    ErrorCode DOCX_FILE_NOT_EXISTS = new ErrorCode(201, "docx文件不存在");

    /**
     * 统一的参数错误
     */
    ErrorCode PARAMETER_ERROR = new ErrorCode(201, "参数错误");

    /**
     * 系统相关的异常
     */
    ErrorCode ACCOUNT_DISABLED = new ErrorCode(201, "账户被禁用");
    ErrorCode USERNAME_OR_PASSWORD_ERROR = new ErrorCode(201, "用户名或密码错误");
    ErrorCode ACCOUNT_DISABLED_FAILED = new ErrorCode(201, "账户禁用失败");
    ErrorCode INVALID_USERNAME = new ErrorCode(201, "无效用户名");
    ErrorCode USERNAME_DUPLICATE = new ErrorCode(201, "用户名重复");
    ErrorCode USERNAME_CREATE_FAIL = new ErrorCode(201, "该角色尚未分配菜单，无法创建用户！");
    ErrorCode UPDATE_PASSWORD_FAILED = new ErrorCode(201, "修改密码失败");
    ErrorCode OLD_PASSWORD_ERROR = new ErrorCode(201, "旧密码不正确");
    ErrorCode RESET_PASSWORD_FAILED = new ErrorCode(201, "重置密码失败");

    /**
    * 业务相关的异常
    */
    ErrorCode NAME_DUPLICATE = new ErrorCode(201, "名字重复");
    ErrorCode COMMIT_ERROR = new ErrorCode(201, "提交有误");
    ErrorCode CODE_DUPLICATE = new ErrorCode(201, "编号重复");



}
